package com.swp.oa.sys.service;

import java.util.List;

import com.swp.oa.sys.dto.domian.RoleDto;
import com.swp.oa.sys.dto.page.Combo;
import com.swp.oa.sys.pojo.Auth;
import com.swp.oa.sys.util.Pager;

public interface IRoleService {
		
	public abstract boolean save(RoleDto roleModel);
	
	public abstract boolean saveRolePermissionItems(String roleId, String[] permissionItemArray);
	 
	public abstract boolean deleteByPrimaryKey(String roleid);
	 	 	 	 	 	 
	public abstract boolean deleteUserRole(String userid,String roleid);
	 	 
	public abstract void delete(String[] roleIdArray);
	
	public abstract boolean update(RoleDto roleModel);
	
	public abstract List<RoleDto> getAllRole();
	
	public abstract RoleDto getRoleByRoleId(String roleId);

	public abstract List<Auth> selectAuthsByRoleId(String roleid);

	public abstract Pager getRoleList(int pageIndex, int pageSize);
	
	public boolean  existRole(RoleDto roleModel);

	public abstract List<Combo> getRoleComboData(String userId); 
	
	
}
